package com.jumi.microservice.framework.log;

import com.jumi.microservice.common.base.dto.ResponseResult;
import com.jumi.microservice.framework.log.domain.SysOperLog;
import com.jumi.microservice.framework.log.factory.RemoteLogFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 日志服务
 *
 * @author ssk
 */
@FeignClient(contextId = "remoteLogService", value = "supply-provider", fallbackFactory = RemoteLogFallbackFactory.class)
public interface RemoteLogService
{
    /**
     * 保存系统日志
     *
     * @param sysOperLog 日志实体
     * @return 结果
     */
    @PostMapping("/operlog")
    ResponseResult<Boolean> saveLog(@RequestBody SysOperLog sysOperLog);
}
